]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
network: Don't omit parens when constructing
authorFlorian Müllner <fmuellner@gnome.org>
Mon, 19 Aug 2019 19:13:01 +0000 (21:13 +0200)
committerFlorian Müllner <florian.muellner@gmail.com>
Wed, 11 Sep 2019 20:59:31 +0000 (20:59 +0000)
While it is legal to omit parentheses when invoking a constructor
with no arguments, we generally avoid that in our coding style.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/710

js/ui/status/network.js

index 7cff22c6e6c6e4126bc478bee6ce9e7f6736c424..4bb012d889d2a4967d4bcf00cf8cd04d8b3ea9f8 100644 (file)
@@ -874,7 +874,7 @@ class NMWirelessDialog extends ModalDialog.ModalDialog {
         this._airplaneHeadline = new St.Label({ style_class: 'nm-dialog-airplane-headline headline' });
         this._airplaneText = new St.Label({ style_class: 'nm-dialog-airplane-text' });
 
-        let airplaneSubStack = new St.Widget({ layout_manager: new Clutter.BinLayout });
+        let airplaneSubStack = new St.Widget({ layout_manager: new Clutter.BinLayout() });
         this._airplaneButton = new St.Button({ style_class: 'modal-dialog-button button' });
         this._airplaneButton.connect('clicked', () => {
             if (this._rfkill.airplaneMode)